<?
require_once($framework."/data.php");
$product = __template_get("product");
$size = __sysparam("thumbs","size");
?>
<div class="product span-3 first">
	<p class="title"><a href="<?= Html::encodeUrl("catalog","show","product",$product['product_id'])?>"><?= $product['title'] ?></a></p>
	<a href="<?= Html::encodeUrl("catalog","show","product",$product['product_id']) ?>" title="<?= $product['shortdescription']?>">
		<img src="webapp/public/media/covers/<?= $size ?>/<?= $product['cover'] ?>"
			alt="cover" class="lightbox"/>
	</a>
	<p class="price left"><?= $product['price'] ?></p>
	<p class="availability left">
		<?= ($product['availability']<=__sysparam('system','today')?"available":"(<acronym title=\"Delayed until ".$product['availability']."\">Delayed</acronym>)") ?>
	</p>
	<?= Html::addButton("catalog","show","product",$product['product_id'],$product['title']) ?>
</div>